package com.cby.springboot.demo.mapper;

import com.cby.springboot.demo.bean.AdminRoleMenu;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdminRoleMenuMapper {

    @Select("select * from admin_role_menu where rid = #{rid}")
    List<AdminRoleMenu> findAllByRid(@Param("rid") int rid);

    @Delete("delete from admin_role_menu where rid = #{rid}")
    void deleteAllByRid(@Param("rid") int rid);
}
